package com.demo.render;

import freemarker.template.Configuration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * @author liangliang
 */
public class Render {

    public static void main(String[] args) {
        ApplicationContext ac = new FileSystemXmlApplicationContext("classpath:dispatcher-servlet.xml");
        Configuration configuration = (Configuration)ac.getBean("configuration");

        HtmlUtil.renderFreeMarker(configuration);
        HtmlUtil.renderVelocity();
    }


}
